﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.master" AutoEventWireup="true" CodeFile="BusquedaEmpleadoQ.aspx.cs" Inherits="BusquedaEmpleadoQ" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
    <h1> Busqueda Empleados</h1>
         <table>    
        <tr>
        <td>  	
            
              <table >
      
                <tr>
                    <td class="gris"> Buscar: </td>
                    <td> <input name="buscar" class="form_input" id="cname" value="busqueda" size="60" runat ="server"/></td>
                    <td>                     
                    <asp:Button ID="btnConsultar" runat="server" Text="Consultar" onclick="btnConsultar_Click" 
                         />
                    </td>
                </tr>
                <tr><td colspan="2" >
                  <label>
                        Palabras claves para buscar: Nombre candidato pre-contratado</label><br />
                  <label>
                    <input type="checkbox" name="Documentacion" value="10" id="Documentacion_9" runat ="server" />
                    Todos los registros</label>
                  <br />
                    <br />                    
                    </td><td >
                        &nbsp;</td></tr>
              </table>
              <table width="100%">
              
           	  <tr>
              	<td>

                    </td>
                
               </tr>
            </table>
  

            <table>
                <tr>
                    <td>
                    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <ContentTemplate>
                    <asp:GridView ID="grdDatos" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="IdEmpleado" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" onpageindexchanging="grdDatos_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="IdEmpleado" 
                             HeaderText=" ID "
                             SortExpression="IdEmpleado" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                           <asp:BoundField 
                             DataField="NumeroEmpleado" 
                             HeaderText="No Empleado"
                             SortExpression="NumeroEmpleado" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="EmpresaAsignada" 
                             HeaderText="Empresa"
                             SortExpression="EmpresaAsignada" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Nombre1" 
                             HeaderText="Primer Nombre" 
                              ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Nombre2" 
                             HeaderText=" Segundo Nombre" 
                              ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Paterno" HeaderText="Paterno " 
                                SortExpression="Paterno">
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Materno" HeaderText="Materno">
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Puesto" HeaderText="Puesto">
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="FechaIngreso" 
                             HeaderText="Fecha Precontratación" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="30px" />
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField DataField="IdOrden" HeaderText="No Orden" 
                                SortExpression="IdOrden" >
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                    </ContentTemplate>
                     </asp:UpdatePanel>
                    </td>
                </tr>
            </table>

    </div>
    </td>
    </tr>
    </table>  
 </form>
</asp:Content>

